Skip to main content

All Questions

2votes
1answer
464views

Process appears with square brackets ([]) around name after being SIGKILL'd

I am executing and killing a process as follows: python some_script.py &; pid=$!; sleep 5; kill -9 $!; ps -o pid,sid,uid,state,start,command In other words: I execute a script in the background, ...
Alessandro Power's user avatar
5votes
2answers
3kviews

WCHAN = 0 for a sleeping task?

I am a little confused about the status of a process I have. It looks like this: $ ps -eal | head -n 1 ; ps -eal | grep perf F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 4 S ...
xealits's user avatar
  • 2,257
60votes
10answers
37kviews

Can ps display only non kernel processes on Linux?

How can I ask ps to display only user processes and not kernel threads? See this question to see what I mean...
Totor's user avatar
  • 20.8k

close